package com.itheima.task3;

public class Test {
    public static void main(String[] args) {
        Phone p = new Phone();
        p.playGame();

        new IPlay(){
            @Override
            public void playGame() {
                System.out.println("创建一个手机对象用来打游戏");
            }
        }.playGame();
    }
}
